Special:Log and the logging table -- unified logging scariness!
[lhc/web/wiklou.git] / maintenance / updaters.inc
index d5075f3..54b3f04 100644 (file)
@@ -205,4 +205,16 @@ function do_image_name_unique_update() {
                echo "ok\n";
        }
 }
+
+function do_logging_update() {
+       global $wgDatabase;
+       if ( $wgDatabase->tableExists( 'logging' ) ) {
+               echo "...logging table already unique.\n";
+       } else {
+               echo "Creating logging table and adjusting recentchanges... ";
+               dbsource( "maintenance/archives/patch-logging.sql", $wgDatabase );
+               echo "ok\n";
+       }
+}
+
 ?>